// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    
    // onLoad () {}

    start () {
        
    }

    // 需要在编辑器中开启 Enable Contact Listener 回调函数才能执行
    onBeginContact (contact: cc.PhysicsContact, self: cc.Collider, other: cc.Collider) {
        cc.log(self.node.name); // 谁在层级管理器中的层级高就先执行谁
    }

    // update (dt) {}
}
